<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>申请书查看</title>
<c:if test="${empty param.include}">
	<%@ include file="/common/meta.jsp"%>
</c:if>
<script type="text/javascript" src="${res}/js/jquery/jquery.form.js"></script>
<script type="text/javascript"
	src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript"
	src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript"
	src="${res}/js/keyword/keywordtips.js"></script>
	<script type="text/javascript">var ctx="${ctx}";var res="${res}";var res_hn="${res_app}"; </script>
<script type="text/javascript" src="${res_app}/js/app/proposal/irisPrpPrepare.js"></script>
<style type="text/css">
.color_red{
	display:none;
}
#content{
width:940px;
}
.thclass {
    background-color: #EDF2F8;
    border-bottom: 0px solid #A1C0DC;
    color: #003366;
    font-weight: bold;
    height: 30px;
}
</style>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript">
var ctxpath = "${ctx}";
var prcWin = new progressWin("${res}");//初始化遮罩层

$(function(){
	
	if("${param.auditflag}"==""||"${param.auditflag}"==null)
		$("#tab1").click();
    if("${param.auditflag}"=="edit")
		$("#tab4").click();

	updatePdfNotes();
	window.setInterval("checkPdfStatus()", "10000");//检验申请书的pdf
	refreshTextArea();
	resetTitle();
});
</script>

</head>
<body>
	<iframe   name="frameDownLoad"   width=0   height=0   frameborder=0   style="display:   none"></iframe>
	<c:set var="xmlstr" value="${xmlData}" />
	<x:parse xml="${xmlstr}" var="xmlData" />
	<input type="hidden" id="childDiv" class="thickbox"/>
	<input type="hidden" id="filePath" value="${ctx}/file/ajax-filedownload?fileCode=" />
	<input type="hidden" id="menuId" value="${param.menuId}" />

	<div id="showMessage"></div>
	<div id="content">
		
		<div class="clear_h15"></div>
		<div class="word_box" id="mainDiv">
			
			<div class="bar_b">
				<security:authorize ifNotGranted="A_MENU_REVIEW_09"><c:if test="${not empty fbl.pdfViewUrl}"><a href="#" onclick="return genPdf('<iris:des3 code="${posCode}"/>');" class="yase ico_pdf">查看pdf</a></c:if></security:authorize>
				<input type="hidden" id="pdfStatus" value="${pdfStatus}" />
				<span class="right">版本号：<span name="proposal/prp_version" id="prp_version"><x:out select="$xmlData/data/proposal/prp_version" /></span></span>
			</div>
			<form method="post" id="mainForm">
				<input type="hidden" value="${grantCode}" id="grantCode"
					name="grantCode"> 
				<input type="hidden" value="${posCode}" id="posCode" name="posCode"> 
				<input type="hidden" value="${xmlData}" id="xmlData" name="xmlData">
			</form>
				<div class="word_title">
					<c:set var="statYear">${statYear}</c:set>
					<c:if test="${empty statYear}">
						<c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
					</c:if>
					<input type="hidden" name="proposal/stat_year" value="${statYear}">
					<span name="proposal/grant_name" ><x:out select="$xmlData/data/proposal/grant_name" /></span>-项目申请书 (<span name="proposal/stat_year">${statYear}</span>年)<br />						
					<input type="hidden" name="proposal/sub_grant_name" value="<x:out select="$xmlData/data/proposal/sub_grant_name" />" />
					<input type="hidden" name="proposal/grant_code" value="<x:out select="$xmlData/data/proposal/grant_code" />" />
					<input type="hidden" id="grant_no" name="proposal/grant_no" value="<x:out select="$xmlData/data/proposal/grant_no" />" />							
					<input type="hidden" name="proposal/sub_grant_code" value="<x:out select="$xmlData/data/proposal/sub_grant_code" />" />
					<input type="hidden" id="sub_grant_no" name="proposal/sub_grant_no" value="<x:out select="$xmlData/data/proposal/sub_grant_no" />" />
					<input type="hidden" name="proposal/help_grant_code" value="<x:out select="$xmlData/data/proposal/help_grant_code" />" />
					<input type="hidden" id="help_grant_no" name="proposal/help_grant_no" value="<x:out select="$xmlData/data/proposal/help_grant_no" />" />
					<c:set var="formCode"><x:out select="$xmlData/data/proposal/form_code" /></c:set>
					<c:if test="${empty formCode}"><c:set var="formCode" value="${param.formCode}"></c:set></c:if>
					<input type="hidden" name="proposal/form_code" value="${formCode}" />
				</div>
				<div id="tabnav">
					<ul>
						<li id="tab1" onclick="changeTab(this.id)"><a href="###"><span>基本信息</span>
						</a>
						</li>
						<li id="tab2" onclick="changeTab(this.id)" ><a href="###"><span>单位信息</span>
						</a>
						</li>
						<li id="tab3" onclick="changeTab(this.id)" ><a href="###"><span>立项情况</span>
						</a>
						</li>
						<li  class="down" id="tab4" onclick="changeTab(this.id)" ><a href="###"><span>附件清单</span>
						</a>
						</li>
					</ul>
				</div>
				<!-- 基本信息   -->
				<div class="tab_box" id="fragment-tab1" style="display: none">
					<jsp:include page="../info/prpInfoEdit_gsszdjh.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				<!-- 单位信息   -->
				<div class="tab_box" id="fragment-tab2" style="display: none">
					<jsp:include page="../org/prporg_ybyf.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				<!-- 立项情况   -->
				<div class="tab_box" id="fragment-tab3" style="display: none">
					<jsp:include page="../product/prpproduct_cxyhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				<!-- 附件清单   -->
				<div class="tab_box" id="fragment-tab4">
					<jsp:include page="../attach/prpAttachEdit_cxyhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
		</div>
		<div class="clear_h15"></div>
	</div>
</body>

</html>